package com.medic.service.interf;


import java.util.List;

import com.medic.entity.Assitant;
import com.medic.entity.Doctor;
import com.medic.entity.Pharmacist;
import com.medic.entity.User;
import com.medic.entity.Weichat;

public interface WeichatServiceInterface extends ServiceInterface<Weichat>  {

	
	
	/**
	 * 查询该微信账号下所有角色
	 * @return
	 * @throws Exception
	 */
	public List<Weichat> getRoleByOpenID(String openid) throws Exception;
	
	
	/**
	 * 根据id查出对应患者的数据  
	 * @param id
	 * @throws Exception
	 */
	public User getUserByWeichatid(int weichatid) throws Exception;

	/**
	 * 根据id查出对应药师的数据 
	 * @param id
	 * @throws Exception
	 */
	public Pharmacist getPharmaicstByWeichatid(int weichatid) throws Exception;

	
	/**
	 * 根据id查出对应助手的数据 
	 * @param id
	 * @throws Exception
	 */
	public Assitant getAssitantByWeichatid(int weichatid) throws Exception;
	
	
	/**
	 * 根据id查出对应医生的数据 
	 * @param id
	 * @throws Exception
	 */
	public Doctor getDoctorByWeichatid(int weichatid) throws Exception;


	
	
	
}
